package com.zz.framework.core.utils.wsmanager.listener;

import okhttp3.Response;
import okio.ByteString;

public abstract class WsStatusListener {

  public abstract void onOpen(Response response);

  public abstract void onMessage(String text);

  public abstract void onMessage(ByteString bytes);

  public abstract void onReconnect();

  public abstract void onClosing(int code, String reason) ;

  public abstract void onClosed(int code, String reason);

  public abstract void onFailure(Throwable t, Response response) ;
}
